// types.ts
import { DashboardOutlined, LockOutlined, RotateLeftOutlined, SettingOutlined, UserOutlined } from "@ant-design/icons";
import { ReactNode } from "react";

export interface MenuItem {
  key: string;
  label: string;
  icon?: ReactNode;
  path?: string;
  children?: MenuItem[];
}

export const menuItems: MenuItem[] = [
  {
    key: "dashboard",
    label: "首页",
    icon: <DashboardOutlined />,
    path: "/dashboard",
  },
  {
    key: "users",
    label: "用户管理",
    icon: <UserOutlined />,
    path: "/users",
  },
  {
    key: "roles",
    label: "角色管理",
    icon: <RotateLeftOutlined />,
    path: "/roles",
  },
  {
    key: "permissions",
    label: "权限管理",
    icon: <LockOutlined />,
    path: "/permissions",
  },
  {
    key: "settings",
    label: "设置",
    icon: <SettingOutlined />,
    path: "/settings",
  },
];
